import { Injectable } from '@nestjs/common';
import NodeAuth from 'node-auth0';

@Injectable()
export class ToolService {
  private nodeAuth: NodeAuth;
  constructor () {
    this.nodeAuth = new NodeAuth();
  }

  checkPassword(password: string, sqlPassword: string): boolean {
    return this.nodeAuth.checkPassword(password, sqlPassword);
  }
}
